The Week View component > FWeekView.getSelectedDate()

 

FWeekView.getSelectedDate()

Availability

Flash Player 6.

Usage

myWeekView_wkv.getSelectedDate ()

Parameters

none

Returns

Returns a Date object representing the date currently selected within the component.

Description

Returns a Date object representing the date currently selected within the component.

Example

The week_getSelectedDate.fla example file contains an example of using this method.

The following code set the selected date to the current date, which then triggers the change handler to be called.

function onWeekChange(view)
{
	trace( "Selected Date: " + view.getSelectedDate() ); //will trace today's date
}

var dateObj = new Date( ); //today's date

myWeekView_wkv.setChangeHandler( "onWeekChange" );
myWeekView_wkv.setSelectedDate( dateObj );

See also

FWeekView.getValue()

FWeekView.setSelectedDate()